package com.sleep.getexcel.controller;

import com.sleep.getexcel.service.KpiLabelService;
import com.sleep.getexcel.vo.FilePath;
import com.sleep.getexcel.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Sleep-6000
 * @date 2022/8/3
 */
@RestController
@RequestMapping("label")
public class KpiLabelController {
    @Autowired
    private KpiLabelService kpiLabelService;

    @PostMapping("sj")
    public Result insertSJLabel(@RequestBody FilePath filePath){
        return kpiLabelService.insertSJLabel(filePath);
    }


}
